<html>
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>
<h2>Hello World!</h2>
<div>
    <input type="button" id="demo1" value="测试">
</div>
<div>
    <input type="button" id="demo2" value="测试">
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
    $("#demo1").click(function () {
        $.ajax({
            type: 'POST',
            url: '/HRSystem/main/demo1.do',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        });
    });
    $("#demo2").click(function () {
        $.ajax({
            type: 'POST',
            url: '/HRSystem/main/demo2.do',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        });
    });
</script>
</body>
</html>
